package com.andnnl.jm;

import cn.hutool.core.codec.Base62Codec;

import java.util.UUID;

/**
 * Created by chenss on 2024/8/1.
 */
public class UUID2Base64 {
    public static void main(String[] args) {
        final String string = UUID.randomUUID().toString();
        System.out.println(string);
//        byte[] rs = Base62Codec.createGmp().encode(string.getBytes());
        byte[] rs = Base62Codec.INSTANCE.encode(string.getBytes());
        System.out.println(new String(rs));
    }
}
